
//Includes definitions for registers and bits
#include <avr/io.h>
//Includes definitions for Interrupts.
#include <avr/interrupt.h>

#include "uart.h"
#include "adc.h"

int main(void){

	//Initializes UART
	uart_init();
	//Initializes ADC
	adc_init();
	
	uint16_t variable = 0;
	//unsigned char uart_var = 0;
	char str[16];
	
	for(;;){		
		//Read something from the ADC
		variable = adc_read();
		
		//Process the information.
		itoa(variable, str, 10);
		
		//Send it via uart.
		uart_send_string("LightSensor--> ");
		uart_send_string(str);
		USART_Transmit('\n');
	}
}
